class Cal:
    def __init__(self, data):
        self.data = data

    def __add__(self, value):
        result = [x + value for x in self.data]
        return result

    def __sub__(self, value):
        result = [x - value for x in self.data]
        return result

data = [-1, 3, 4, 6]

cal = Cal(data)
result_add = cal + 2
print(f"+运算符重载后的列表{result_add}")

result_sub = cal - 2
print(f"-运算符重载后的列表{result_sub}")
